package com.anolesoft.amljmes.billing.dto;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.anolesoft.yr.mbus.prod.base.entity.ProdBaseServiceValue;
import com.anolesoft.yr.mbus.prod.model.entity.ProdService;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 开单信息DTO
 * @author 韩峰
 *
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AmBillingInfoDTO {
	private String objuid;//主键
	private String pacrNo;//制造记录条码
	private String aircraftType;//机型
	private String partDrawingNo;//零件图号
	private String partName;//零件名称
	private String dispatchNo;//派工号
	private String quantity;//数量
	private String handoverCategory;//移交类别
	private String workshopName;//外表车间
	private String billingUser;//开单人
	private String billingDeft;//开单部门
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private LocalDateTime billingTime;//开单时间
	private String receiveUser;//接收人
	private String receiveDept;//接收部门
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private LocalDateTime receiveTime;//接收时间
	private String receiveNotes;//接收备注
	private String receiveState;//接收状态
	private String factoryId;//厂代号
	private String refuseReason;//拒绝原因
	private Integer queryType;//查询类别
	private String cUser;//创建人
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GTM+8")
	private LocalDate createTime;//创建时间
	private String mUser;//修改人
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GTM+8")
	private LocalDate modifyTime;//修改时间
	//private String currNum;//当前工序加工数量
	private String billingNotes;//开单备注
	private String currentProcessNo;
	private String currentProcessName;
	private String lupihao;

	private String billingUserName;
	private String receiveUserName;
	private String billingDeftName;
	private String receiveDeptName;
	private String handoverCategoryName;
	private String workshopNameName;

	private String dykhxobj;// 工段移交图号表主键
	private String PlaceDeptName;//所在部门

	public static void main(String[] args) {
		List<AmBillingInfoDTO> amBillingInfoDTOs = new ArrayList<>();
		
		for (int i = 0; i < 3; i++) {
			AmBillingInfoDTO amBillingInfoDTO = new AmBillingInfoDTO();
			amBillingInfoDTO.setPacrNo(""+i+"");
			amBillingInfoDTOs.add(amBillingInfoDTO);
		}

//		amBilingCondition.setBillingTime(LocalDateTime.now());
//		amBilingCondition.setBillingTime2(LocalDateTime.now().plusDays(1));
		System.out.println(">>>>:"+JSON.toJSONString(amBillingInfoDTOs));
	}
}
